﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Security.Permissions;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace PHRClient
{
    public partial class DoctorLogin : Form
    {
        public DoctorLogin()
        {
            InitializeComponent();            
            this.TopLevel = false;
            this.AutoScroll = true;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Dock = DockStyle.Fill;

            DoctorMainForm.DoctorContainer.Controls.Clear();
            DoctorMainForm.DoctorContainer.Controls.Add(this);
        }

        private void submitButton_Click(object sender, EventArgs e)
        {
            if (userNameTextBox.Text.Equals("Doctor", StringComparison.InvariantCultureIgnoreCase) && passwordTextBox.Text == "doctor")
            {
                Validator.doctorLoginValidate("Doctor");
            }

            else
            {
                Validator.doctorLoginValidate("");
            }
            
        }

    }
}